module.exports = options => {
    const assert = require('http-assert')
    return async (req, res, next) => {
        const { rolename } = req.user.role;
        assert(rolename === '超级管理员', 402, '抱歉，您没有此权限');
        await next()
    }
}